home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / lib / float / cva_ffptodp.a < prev    next >
Encoding:
Text File  |  1994-02-01  |  609 b   |  30 lines

  1.  
  2.         ;   CVA_FFPTODP.A
  3.         ;
  4.         ;   D0 = arg    (4 bytes)
  5.         ;
  6.         ;   result in D0/D1
  7.         ;
  8.         ;   (c)Copyright 1990, Matthew Dillon, All Rights Reserved
  9.  
  10.         section text,code
  11.  
  12.         xref    _MathTransBase
  13.         xref    _MathIeeeDoubTransBase
  14.  
  15.         xref    _LVOSPTieee    ; MathTransBase (ffp -> ieee.sing)
  16.         xref    _LVOIEEEDPFieee ; MathIeeeDoubTransBase (sing->doub)
  17.         xdef    __cvffptodp_a
  18.  
  19. __cvffptodp_a    move.l    A6,-(sp)
  20.         move.l    _MathTransBase(A4),A6
  21.                     ; FFP value in D0
  22.         jsr    _LVOSPTieee(A6) ; convert to ieee.sing
  23.         move.l    _MathIeeeDoubTransBase(A4),A6
  24.         jsr    _LVOIEEEDPFieee(A6) ; convert ieee.sing->ieee.doub
  25.         move.l    (sp)+,A6
  26.         rts
  27.  
  28.         END
  29.  
  30.